package com.zxl.thread;

public class TestMain {
    
    public static void main(String[] args) {
        
        new Thread(new Runnable() {
            
            @Override
            public void run() {
                new FirstEntity("first0").printValue();
                new SecondEntity("second0").printValue();
            }
        }).start();
        new Thread(new Runnable() {
            
            @Override
            public void run() {
                new FirstEntity("first1").printValue();
                new SecondEntity("second1").printValue();
            }
        }).start();
        new Thread(new Runnable() {
            
            @Override
            public void run() {
                new FirstEntity("first2").printValue();
                new SecondEntity("second2").printValue();
            }
        }).start();
        new Thread(new Runnable() {
            
            @Override
            public void run() {
            	new SecondEntity("second3").printValue();
                new FirstEntity("first3").printValue();
            }
        }).start();
    }
}
